package com.md.api.dao;

import com.md.api.entity.ShoppingOrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingOrderDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShoppingOrderDetail record);
    int insertBatch(@Param("list") List<ShoppingOrderDetail> list);
    ShoppingOrderDetail selectByPrimaryKey(Long id);

    List<ShoppingOrderDetail> getByOrderNo(String orderNo);

    //修改物流信息
    int updateLogistics(ShoppingOrderDetail record);

    ShoppingOrderDetail getDetail(@Param("orderNo")String orderNo, @Param("skuId")String skuId);

    int updateStatus(ShoppingOrderDetail detail);

    int updateBeforeStatus(ShoppingOrderDetail detail);

    int confirmOrder(ShoppingOrderDetail detail);

    void hasEvaluate(@Param("orderNo")String orderNo, @Param("skuId")String skuId);
}